define([
    //  Dependancy scripts
    // ---------------------------   
    'backbone'
], function(Backbone) 
{
    'use strict';
    
    var Day = Backbone.Model.extend({
       
       defaults : {
            'day'           : null,
            'highCelsius'   : null,
            'lowCelsius'    : null,
            'icon_url'      : ''   
       },

       parse : function(data) {
            
            var map = {
                'day'           : data.date.weekday,
                'highCelsius'   : data.high.celsius,
                'lowCelsius'    : data.low.celsius,
                'icon_url'      : data.icon_url
            };

           return map;
       }
    });      

    return Day;
});